package com.youzi.tunnel.server;

import com.youzi.tunnel.common.Config;
import com.youzi.tunnel.server.work.ServerStarter;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@ServletComponentScan
@SpringBootApplication
public class ServerApplication {

    public static void main(String[] args) {
        Config.getInstance().init(args);

        ServerStarter.start();
        System.out.println("启动成功");
    }

}
